package com.junit;

import static org.junit.Assert.*;

import java.io.File;
import java.io.FileFilter;

import org.junit.Test;

public class UnitTestTest {

	@Test
	public void test() {
		UnitTest tr = new UnitTest();
		tr.getOne();
		assertEquals(1, tr.getOne());
		
		File file = new File("D:\\pic\\test");
		File[] listFiles = file.listFiles(new FileFilter() {
			
			public boolean accept(File pathname) {
				if(pathname.getName().indexOf(".jpg")>0){
					return true;
				};
				return false;
			}
		});
	}

}
